package com.ak.demo.linster;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 自定义业务
 */
public class HelloJob2 implements Job {

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
          System.out.println(context.getJobDetail().getKey().getName()+"---"+new  SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
    }

}